<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:88:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\index\index.html";i:1532072367;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\head.html";i:1533884395;s:86:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\upass.html";i:1533884729;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\left.html";i:1538985912;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\foot.html";i:1539051955;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<title>首页</title>

	<!-- bootstrap -->
	<link href="__CSS__/bootstrap/bootstrap.css" rel="stylesheet" />

	<!-- libraries -->
	<!-- <link href="css/libs/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" /> -->
	<link href="__CSS__/libs/font-awesome.css" type="text/css" rel="stylesheet" />

	<!-- global styles -->
	<link rel="stylesheet" type="text/css" href="__CSS__/compiled/layout.css">
	<link rel="stylesheet" type="text/css" href="__CSS__/compiled/elements.css">

	<!-- this page specific styles -->
	<link rel="stylesheet" href="__CSS__/libs/fullcalendar.css" type="text/css" />
	<link rel="stylesheet" href="__CSS__/libs/fullcalendar.print.css" type="text/css" media="print" />
	<link rel="stylesheet" href="__CSS__/compiled/calendar.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="__CSS__/libs/morris.css" type="text/css" />
	<link rel="stylesheet" href="__CSS__/libs/daterangepicker.css" type="text/css" />
	<link rel="stylesheet" href="__CSS__/libs/jquery-jvectormap-1.2.2.css" type="text/css" />
	<link rel="stylesheet" href="__CSS__/new.css">

	<!-- Favicon -->
	<!--<link type="image/x-icon" href="favicon.png" rel="shortcut icon"/>-->

	<!-- google font libraries -->
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'>

	<!--[if lt IE 9]>
	<script src="__JS__/html5shiv.js"></script>
	<script src="__JS__/respond.min.js"></script>
	<![endif]-->
	<!--[if lt IE 8]>-->
		<!--<link href="__CSS__/libs/font-awesome-ie7.css" type="text/css" rel="stylesheet" />-->
	<script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	  ga('create', 'UA-49262924-1', 'phoonio.com');
	  ga('send', 'pageview');

	</script>

</head>
<body>
	<!--head-->
	<link rel="stylesheet" href="__CSS__/new.css"/>
<link rel="stylesheet" href="__CSS__/other.css"/>
<style>
    @media (max-width: 768px) {
        .img{
            width: 160px!important;
            height: 56px!important;
            /* margin-top: -18px;
             padding-right: 2px;*/
        }
    }
    .table thead > tr > th span {
        border-bottom: 0;
    }
    .forhid{
        display: none;
    }
    .main-box{
        min-height: 820px;
    }
    @media (max-width:1320px){
        .main-box{
            min-height: 700px;
        }
    }
</style>

<header class="navbar" id="header-navbar">
    <div class="container">
        <a href="<?php echo url('Index/index'); ?>" id="logo" class="navbar-brand col-md-3 col-sm-3 col-xs-12">
            <img src="__IMG__/logo.png" class="img" alt=""/>
        </a>

        <button class="navbar-toggle" data-target=".navbar-ex1-collapse" data-toggle="collapse" type="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="fa fa-bars"></span>
        </button>

        <div class="nav-no-collapse pull-right" id="header-nav">
            <ul class="nav navbar-nav pull-right">

                <li class="dropdown profile-dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="hidden-xs"><?php echo $surname; ?>,welcome</span> <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <!--<li><a href="user-profile.html"><i class="fa fa-user"></i></a></li>-->
                        <li><a href="#" class="class-upass"><i class="fa fa-cog"></i>修改密码</a></li>
                        <!--<li><a href="#"><i class="fa fa-envelope-o"></i>Messages</a></li>-->
                        <li><a href="<?php echo url('Login/out'); ?>"><i class="fa fa-power-off"></i>退出登录</a></li>
                    </ul>
                </li>
                <li class="hidden-xxs">
                    <a class="btn" title="退出登录" href="<?php echo url('Login/out'); ?>">
                        <i class="fa fa-power-off"></i>
                    </a>
                </li>

            </ul>
        </div>
    </div>

</header>
<!--修改密码-->

<link rel="stylesheet" href="__CSS__/upass.css"/>

<!--修改密码 弹框-->
<div class="upass">
    <form method="post" onsubmit=upass("<?php echo $username; ?>") enctype="multipart/form-data">
        <div id="upass">
            <div class="ltitle" style="text-align: center;">修改密码</div>
            <div class="new-del">
                <span class="u-span">用户名</span>
                <input type="text" name="username_upass" value="<?php echo $username; ?>" class="fa-input" readonly style="background-color: grey">
            </div>
            <div class="new-del">
                <span class="u-span">原密码</span>
                <input type="password" name="oldpass" class="fa-input">
            </div>
            <div class="new-del">
                <span class="u-span">新密码</span>
                <input type="password" name="newpass" class="fa-input">
            </div>
            <div class="new-del">
                <span class="u-span">新密码确认</span>
                <input type="password" name="confirm" class="fa-input">
            </div>
            <div class="alert-btn" style=" margin-top: 16px;">
                <button type="submit" class="alert-sure" style="margin-left: 30%; border-radius: 5px;">确定</button>
                <span class="alert-cancel" style=" border-radius: 5px;">取消</span>
            </div>
        </div>
    </form>
</div>
<script src="__JS__/jquery.js"></script>
<script>

    function upass() {
        var username = $("input[name='username_upass']").val()
        var password = $("input[name='oldpass']").val()
        var update = $("input[name='newpass']").val()
        var confirm = $("input[name='confirm']").val()
        //console.log(model_id)
        var data = {'username':username,'password':password,'update':update, 'confirm':confirm}
        $.ajax({
            //几个参数需要注意一下
            type: "POST",//方法类型
            dataType: "json",//预期服务器返回的数据类型
            url: "<?php echo url('Base/upass'); ?>",//url
            data: data,
            success: function (result) {
                var code = result.code;
                var msg = result.msg;
                changeText(msg, code)
                //成功返回登录界面
                if(code == 1){
                    window.location.href="<?php echo url('Login/index'); ?>"
                }
            },
            error:function (result) {
                alert('服务器错误')

            }
        });
    }
    $(function () {
        $(".alert-close").click(function () {
            $(".upass").css("display","none")
        })
        $(".alert-cancel").click(function () {
            $(".upass").css("display","none")
        })
        $(".class-upass").click(function () {
            $(".upass").css("display","block")
        })

    })

</script>


	<div class="container">
		<div class="row">

				<!--left-->
				
<style>
    #sidebar-nav .nav li .submenu > li > a.active{
        background-color: #313131;
    }
</style>

<div class="col-md-2" id="nav-col">
    <section id="col-left">
        <div class="collapse navbar-collapse navbar-ex1-collapse" id="sidebar-nav">
            <ul class="nav nav-pills nav-stacked" id="menulist">
                <li>
                    <a href="<?php echo url('Index/index'); ?>" class="tmp">
                        <i class="fa fa-home"></i>
                        <span>首页</span>
                    </a>
                </li>
                <?php if(in_array('Admin/index',$ownways) or in_array('Dept/index',$ownways) or in_array('Role/index',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-cog"></i>
                        <span>系统管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <!--超级管理员管理菜单-->
                        <?php if($status == '0'): ?>
                        <li>
                            <a href="<?php echo url('Way/index'); ?>" class="tmp">
                                操作菜单管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Role/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Role/index'); ?>" class="tmp">
                                角色管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Dept/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Dept/index'); ?>" class="tmp">
                                部门管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Admin/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Admin/index'); ?>" class="tmp">
                                用户管理
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <?php endif; if((in_array('Fitting/index',$ownways)) or (in_array('Client/index',$ownways))
                or (in_array('Program/index',$ownways) or (in_array('MeterType/index',$ownways))
                or (in_array('ModelType/index',$ownways)) or (in_array('Principle/index',$ownways)))): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-cogs"></i>
                        <span>可配置项管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <?php if(in_array('State/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('State/index'); ?>" class="tmp">
                                国家管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Client/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Client/index'); ?>" class="tmp">
                                客户管理
                            </a>
                        </li>
                        <?php endif; if(in_array('MeterType/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('MeterType/index'); ?>" class="tmp">
                                基表型号管理
                            </a>
                        </li>
                        <?php endif; if(in_array('ModelType/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('ModelType/index'); ?>" class="tmp">
                                电子模块类型管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Manu/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Manu/index'); ?>" class="tmp">
                                制造商管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Principle/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Principle/index'); ?>" class="tmp">
                                生产负责人管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Fitting/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Fitting/index'); ?>" class="tmp">
                                配件管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Supply/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Supply/index'); ?>" class="tmp">
                                客供料管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Program/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Program/index'); ?>" class="tmp">
                                方案管理
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <?php endif; if(in_array('Order/index',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-shopping-cart"></i>
                        <span>订单评审管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('Order/index'); ?>" class="tmp">
                                订单评审
                            </a>
                        </li>

                    </ul>
                </li>
                <?php endif; if(in_array('Execorder/index',$ownways) || in_array('Fitting/exec',$ownways)
                || in_array('Execorder/gds',$ownways) || in_array('Supply/exec',$ownways)
                || in_array('Execorder/gdc',$ownways) || in_array('Execorder/gdm',$ownways)
                || in_array('Execorder/gdq',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-money"></i>
                        <span>订单执行管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <?php if(in_array('Execorder/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/index'); ?>" class="tmp">
                                订单执行
                            </a>
                        </li>
                        <?php endif; if(in_array('Order/exec',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Order/exec'); ?>" class="tmp">
                                配件执行
                            </a>
                        </li>
                        <?php endif; if(in_array('ModelSupply/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('ModelSupply/index'); ?>" class="tmp">
                                客供料执行
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gds',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gds'); ?>" class="tmp">
                                统计报表-国家
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdc',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdc'); ?>" class="tmp">
                                统计报表-客户
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdm',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdm'); ?>" class="tmp">
                                统计报表-基表型号
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdq',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdq'); ?>" class="tmp">
                                统计报表-表计订单数量
                            </a>
                        </li>
                        <?php endif; ?>

                    </ul>
                </li>
                <?php endif; ?>

            </ul>
        </div>
    </section>
</div>

<script src="__JS__/jquery.js"></script>
<script src="__JS__/pagenav/jquery.singlePageNav.min.js"></script>
<script>
    //菜单动态选中 js
    //获取当前地址栏中的链接
    var urlstr = location.href;
    var urlstatus = false;
    var menu_obj = $("#menulist a");
    //遍历所有菜单
    menu_obj.each(function () {
        //判断当前菜单是否存在
        if((urlstr + '/').indexOf($(this).attr('href')) > -1 && $(this).attr('href')!='')
        {
            $(this).addClass('active');
            $(this).parent().parent().parent().addClass('active'); //针对有多级菜单选中的样式添加
            urlstatus = true;
        }
        else
        {
            $(this).parent().removeClass('active');
        }
    });
    //加载页面默认选中第一个
    /*if(!urlstatus)
    {
        menu_obj.parent().eq(0).addClass('active');
    }*/
    /*$(function () {
        $('.nav').singlePageNav({
                offset:10
        }
        );
    })*/
</script>


			<div class="col-md-10" id="content-wrapper">
				<!--<h2 class="pull-left">Last orders</h2>-->
				<div class="row">
					<div class="col-lg-12">
						<div class="row">
							<div class="col-lg-12">
								<div class="main-box">
									<h2>欢迎您登录本系统！</h2>
									<div class="col-lg-6">
										<div id="calendar"></div>
									</div>

								</div>
							</div>
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
	<!--foot-->
	
<footer id="footer-bar">
    <p id="footer-copyright">
        &copy; 2018 LAISON
        <!--<a href="http://www.adbee.sk/" target="_blank">Adbee digital</a>. Powered by SuperheroAdmin.-->
    </p>
</footer>

	
	<!-- global scripts -->
	<script src="__JS__/jquery.js"></script>
	<script src="__JS__/bootstrap.js"></script>
	
	<!-- this page specific scripts -->
	<script src="__JS__/jquery-ui.custom.min.js"></script>
	<script src="__JS__/fullcalendar.min.js"></script>

	
	<!-- theme scripts -->
	<script src="__JS__/scripts.js"></script>
    <script>
        /* initialize the calendar
        -----------------------------------------------------------------*/

        var date = new Date();
        var d = date.getDate();
        var m = date.getMonth();
        var y = date.getFullYear();

        var calendar = $('#calendar').fullCalendar({
            header: {
                left: '',
                center: 'title',
                right: 'prev,next'
            },
            selectable: true,
            selectHelper: true,
            /*select: function(start, end, allDay) {
                var title = prompt('Event Title:');
                if (title) {
                    calendar.fullCalendar('renderEvent',
                        {
                            title: title,
                            start: start,
                            end: end,
                            allDay: allDay
                        },
                        true // make the event "stick"
                    );
                }
                calendar.fullCalendar('unselect');
            },*/
            editable: true,
            droppable: true, // this allows things to be dropped onto the calendar !!!
            drop: function(date, allDay) { // this function is called when something is dropped

                // retrieve the dropped element's stored Event Object
                var originalEventObject = $(this).data('eventObject');

                // we need to copy it, so that multiple events don't have a reference to the same object
                var copiedEventObject = $.extend({}, originalEventObject);

                // assign it the date that was reported
                copiedEventObject.start = date;
                copiedEventObject.allDay = allDay;

                // copy label class from the event object
                var labelClass = $(this).data('eventclass');

                if (labelClass) {
                    copiedEventObject.className = labelClass;
                }

                // render the event on the calendar
                // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
                $('#calendar').fullCalendar('renderEvent', copiedEventObject, true);

                // is the "remove after drop" checkbox checked?
                if ($('#drop-remove').is(':checked')) {
                    // if so, remove the element from the "Draggable Events" list
                    $(this).remove();
                }

            },
            buttonText: {
                prev: '<i class="fa fa-chevron-left"></i>',
                next: '<i class="fa fa-chevron-right"></i>'
            }/*,
            events: [

            ]*/
        });
    </script>

	
</body>
</html>